<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加外采购商品</title>
<body class="withvernav">
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
	<div class="centercontent">
		<div class="pageheader notab">
			<h1 class="pagetitle">查看外采购商品</h1>
			<span class="pagedesc"></span>
			<div class="menulist">
				<ul class="profile_summary">
					<li class="current"><a href="/externalbuy/extBuyList">外采购商品列表</a></li>
				</ul>
			</div>
		</div>
		<!--pageheader-->

		<div id="contentwrapper" class="contentwrapper">
			<div id="basicform" class="subcontent">
				<form class="stdform stdform2"  id="otherForm" method="post" action="/externalbuy/saveExtProduct" enctype="multipart/form-data" >
					<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
						<thead>
						<tr>
							<th colspan="2" class="head1">一、基础信息</th>
						</tr>
						</thead>
					</table>
					<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
						<tbody>
						<tr>
							<td class="head1" width="120">商品分类 *</td>
							<td class="head0" colspan="3">
								{{foreach from=$categorylist item=res key=key}}
								    {{if $detail.p_bigclassid == $res.id}}{{$res.cate_name}} {{/if}}
								{{/foreach}}
								{{if $detail.p_secondclassid}}
									{{foreach from=$category item=res key=key}}
										{{if $detail.p_secondclassid == $res.id}}->{{$res.cate_name}} {{/if}}
									{{/foreach}}
								{{/if}}
								{{if $detail.p_threeclassid}}
									{{foreach from=$category item=res key=key}}
									{{if $detail.p_threeclassid == $res.id}}->{{$res.cate_name}} {{/if}}
									{{/foreach}}
								{{/if}}
						</tr>
						<tr>
							<td class="head1">商品SKU *</td>
							<td colspan="3" class="head0">
								{{$detail.sku}}
								<span id="skuerr"></span></td>
						</tr>
						<tr>
							<td class="head1">商品名称 *</td>
							<td colspan="3" class="head0">{{$detail.p_parent_name}}</td>
						</tr>
						<tr>
							<td class="head1">英文名称</td>
							<td colspan="3" class="head0">{{$detail.p_en_goods_name}}</td>
						</tr>
						<tr>
							<td class="head1" width="120">成本价格（元）</td>
							<td colspan="3" class="head0">{{$detail.p_costprice}}</td>
						</tr>
						<tr>
							<td class="head1" width="120">建议售价（元）</td>
							<td colspan="3" class="head0">{{$detail.p_sellprice}}</td>
						</tr>
						<tr>
							<td class="head1">供货商<span class="head0">*</span></td>
							<td colspan="3" class="head0">
								{{$detail.supplier}}
							</td>
						</tr>
						<tr>
							<td class="head1">联系人<span class="head0">*</span></td>
							<td colspan="3" class="head0">
								{{$detail.contactperson}}
							</td>
						</tr>
						<tr>
							<td class="head1">联系方式<span class="head0">*</span></td>
							<td colspan="3" class="head0">
								{{$detail.phone}}
							</td>
						</tr>
						<tr>
							<td class="head1">采购链接<span class="head0">*</span></td>
							<td colspan="3" class="head0">
								{{$detail.address}}
							</td>
						</tr>
						<tr>
							<td class="head1">尺码信息</td>
							<td class="head0" colspan="3">
								{{$detail.sizeinfo}}
							</td>
						</tr>
						{{if $detail.weight}}
						<tr>
							<td class="head1">重量、长宽高 </td>
							<td class="head0" colspan="3">
								{{if $detail.weight}}
								重量：{{$detail.weight}}克 &nbsp;
								{{/if}}
								{{if $detail.length}}
								长度：{{$detail.length}}CM &nbsp;
								{{/if}}
								{{if $detail.width}}
								宽度：{{$detail.width}}CM &nbsp;
								{{/if}}
								{{if $detail.heigth}}
								高度：{{$detail.heigth}}CM &nbsp;
								{{/if}}


							</td>
						</tr>
						{{/if}}
						<tr>
							<td class="head1">材料信息</td>
							<td class="head0" colspan="3">
								{{$detail.fabricinfo}}
							</td>
						</tr>
						<tr>
							<td class="head1">备注信息</td>
							<td class="head0" colspan="3">
								{{$detail.memo}}
							</td>
						</tr>
						<tr>
							<td class="head1">平台信息</td>
							<td class="head0" colspan="3">
							{{foreach from=$platlist item=res key=key}}
							<input type="checkbox" value="{{$res.id}}" name="platId[]" {{if $updflag && in_array($res.id,$arr_shop)}} checked {{/if}}>{{$res.name}}
							{{/foreach}}
							</td>
						</tr>
						<tr>
							<td class="head1">开发者</td>
							<td class="head0" colspan="3">
								{{$detail.developer}}
							</td>
						</tr>
						<tr>
							<td class="head1">维护者</td>
							<td class="head0" colspan="3">
								{{$detail.protector}}
							</td>
						</tr>
						<tr>
							<td class="head1">创建人</td>
							<td class="head0" colspan="3">
								{{$detail.createName}}
							</td>
						</tr>
						<tr>
							<td class="head1">创建时间</td>
							<td class="head0" colspan="3">
								{{$detail.createTime}}
							</td>
						</tr>
						<tr>
							<td class="head1">商品推荐接收人</td>
							<td class="head0" colspan="3">
								{{foreach from=$receiverlist item=res key=key}}
									{{if in_array($res.id,$return_receivers)}}
										<span style="color:red;" title="红色标记为确认上架者">{{$res.name}}&nbsp;</span>
									{{else}}
										{{$res.name}}&nbsp;
									{{/if}}
								{{/foreach}}
							</td>
						</tr>

						</tbody>
					</table>
					{{if $arr_subskus}}
					<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
						<thead>
						<tr>
							<th class="head1">子SKU
							</th>
							<th class="head1">子SKU备注信息
							</th>
							<th class="head1">子SKU图片链接
							</th>
						</tr>
						{{foreach from=$arr_subskus item=rs key=key}}
							<tr>
								<td>
									{{$rs.subsku}}
								</td>
								<td>
									{{$rs.memo}}
								</td>
								<td>
									<a href = "{{$rs.sub_images_url}}" >
										{{if $rs.sub_images_url}}
											查看图片
										{{/if}}
									</a>
								</td>
							</tr>
						{{/foreach}}
						<tr>
							<!--
							<td colspan="3">
								<input type="hidden" value="{{$buyId}}" name="buyId">
								<button type="submit" class="btn btn-primary" > 保存商品
								</button>
							</td>
							-->
						</tr>
						</thead>
						<tbody>
						</tbody>
					</table>
					{{/if}}
					<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
						<thead>
						<tr>
							<th colspan="5" class="head1">日志信息 &nbsp;&nbsp;&nbsp;
							</th>
						</tr>
						</thead>
						<tbody >
						<tr>
							<td>序号</td><td>商品编号</td><td>操作详情</td><td>操作人</td><td>操作时间</td>
						</tr>
						{{foreach from=$logs item=res key=key}}
						<tr>
							<td>{{$res.id}}</td><td>{{$res.goods_code}}</td><td>{{$res.details}}</td><td>{{$res.username}}</td><td>{{$res.createtime}}</td>
						</tr>
						{{/foreach}}
						</tbody>
					</table>
				</form>
				<br />
			</div>
			<!--subcontent-->

			<!--subcontent-->

		</div>
		<!--contentwrapper-->

	</div>
	<!-- centercontent -->

</div>
<!--bodywrapper-->

</body>
</html>